<template>
    <!-- 我的 -->

    <div class="receive">
        <navBar :titleName="titleName"></navBar>
        <mycellprc style="margin-top: 40px;"
                   :title="doctorName"
                   :linkUrl="phoneUrl"
                   :subTitle="phone"
                   :desc="text"
                   :showIcon="true"
                   :isLink = "true"
                   @myClickHandler="myClickHandler">
        </mycellprc>
        <mycell style="margin-top: 10px;"
                title="医生认证"
                :desc="text"
                :showIcon="true"
                :isLink = "true"
                @myClickHandler="myClickDoctor">
        </mycell>
        <mycell
                title="收益明细"
                :desc="text"
                :showIcon="true"
                :isLink = "true"
                @myClickHandler="myClickPre">
        </mycell>
        <mycell
                title="病人管理"
                :desc="text"
                :showIcon="true"
                :isLink = "true"
                @myClickHandler="myClickPatient">
        </mycell>
        <mycell
                title="病历管理"
                :desc="text"
                :showIcon="true"
                :isLink = "true"
                @myClickHandler="myClickBillCard">
        </mycell>
        <mycell
                title="用户协议"
                :desc="text"
                :showIcon="true"
                :isLink = "true"
                @myClickHandler="myClickHandler">
        </mycell>


        <tabbar :message="msg"></tabbar>
    </div>

</template>

<script>
    /* eslint-disable no-console */


    import tabbar from '@/components/common/tabbar.vue'
    import mycell from '@/components/common/my-cell.vue'
    import navBar from '@/components/common/navBar.vue'
    import mycellprc from '@/components/common/my-cell-prc.vue'

    export default {
        name: "presonal",
        components: {
            tabbar,
            mycell,
            navBar,
            mycellprc
        },
        data() {
            return {
                text: '',
                doctorName: '',
                phoneUrl: '',
                phone: '',
                titleName: '个人中心',
                isVisibleDate:false,
                date:null,
                menuItems: [
                    {
                        'name': '男',
                        'value': 0
                    },
                    {
                        'name': '女',
                        'value': 1
                    }
                ],
                msg: 3
            }
        },
        created() {
            // _that = this;
            let doctor = this.$store.state.doctor;
            let apply = this.$store.state.apply;
            this.doctorName = doctor.doctorName;
            this.phoneUrl = doctor.phoneUrl;
            this.phone = apply.phone;
            },
        methods: {
            myClickDoctor: function () {
                console.log("myClickDoctor");
                this.$router.push({name:'doctorDetail'});
            },
            myClickPre(){
                this.$router.push({
                    name: 'profit'
                });
                console.log("myClickPre");
                // this.$toast.text("系统升级中，暂停服务！");
            },
            myClickPatient(){
                console.log("myClickPatient");
                this.$router.push({name:'searchPatient',params:{type:'presonal'}});
            },
            myClickBillCard(){
                //调整样式，暂时使用，上线后注释
                this.$router.push({name:'searchRecord'});
                console.log("myClickPatient");
                // this.$toast.text("系统升级中，暂停服务！");
            },
            myClickHandler:function(){
                console.log("myClickHandler");
                // this.$toast.text("系统升级中，暂停服务！");
                this.$router.push({name: 'protocol'});
            }

        }
    }
</script>

<style scoped>
    .nut-cell-title {
        text-align: left !important;
    }

    .nut-cell-sub-title {
        text-align: left !important;
    }
    .receive{
        min-height: 640px;
        background-color: #e6e6e6;
    }
</style>